home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 352_01.zip / VLMATCH.CPP < prev    next >
C/C++ Source or Header  |  1993-04-10  |  308b  |  14 lines

  1. // VLMATCH.CPP
  2. //         code to match  a String to a vlist.
  3. #include "dblib.h"
  4.  
  5. int Vlist::match ( void *data )
  6.     {
  7.     int  vn = n;    
  8.     for ( int i=0; i<vn; ++i )
  9.         {
  10.         if ( 0==Vlist::compare (data,i) )  break; 
  11.         } 
  12.     return i;                // Vlist::match()
  13.     }
  14. //--------------- end VLMATCH.CPP ------------------